{% extends "base.html" %}
{% load i18n %}

{% block title %}{{ title }} » {% if tag %} {% trans "Tag" %} » {{ tag|escape }} » {% endif %}{% blocktrans %}Page {{ current_page }}{% endblocktrans %}{% endblock %}

{% block head %}
  <link rel="alternate" type="application/rss+xml" title="{% trans "RSS" %}" href="{{ feed_link }}{% if tag %}{{ tag|urlencode }}{% endif %}" />
  <script src="http://www.google.com/jsapi" type="text/javascript"></script>
  <script src="/js/main.js" type="text/javascript"></script>
{% endblock %}

{% block content %}
{% if secrets %}
{% for secret in secrets %}{% include "secret_item.html" %}{% endfor %}
{% else %}
<div class="notice">{% trans "No secrets available!" %}</div>
{% endif %}
<div class="navigation pages">
<div class="prev">&nbsp;{% if prev %}<a href="/browse/{{ lang_path }}{{ prev }}">{% trans "Previous Page" %}</a>{% endif %}</div>
{{ current_page }}
<div class="next">{% if next %}<a href="/browse/{{ lang_path }}{{ next }}">{% trans "Next Page" %}</a>{% endif %}&nbsp;</div>
</div>
{% if tag %}<div style="text-align:center"><a href="/tag/{{ language }}">{% blocktrans %}View the Tag Cloud of {{ title }} Secrets{% endblocktrans %}</a></div>{% endif %}
<div class="feed"><a href="{{ feed_link }}{% if tag %}{{ tag|urlencode }}{% endif %}"><img src="/img/rss.png" title="{% trans "RSS feed" %}"/> {% trans "RSS feed" %}</a></div>
<div class="navigation language">
{% trans "Browse secrets in other language:" %} {% ifequal language "all" %}{% trans "All" %}{% else %}<a href="/browse/all" class="item">{% trans "All" %}</a>{% endifequal %}{% for lang in config.VALID_LANGUAGES %} {% ifequal lang.0 language %}{{ lang.1 }}{% else %}<a href="/browse/{{ lang.0 }}" class="item">{{ lang.1 }}</a>{% endifequal %}{% endfor %}
</div>
{% endblock %}
